﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace Exones.Blend.AssetsManager
{
	public class AssetFolderTemplateSelector : DataTemplateSelector
	{
		public DataTemplate FolderTemplate { get; set; }
		public DataTemplate AssetTemplate { get; set; }

		public override DataTemplate SelectTemplate(object item, DependencyObject container)
		{
			if (item is BlendAssetFolder)
			{
				return AssetTemplate;
			}
			else if (item is BlendFolder)
			{
				return FolderTemplate;
			}

			return null;
		}
	}
}
